package com.snail.model.pojo.study;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;


/**
 * @Date 2025/8/13 10:44
 * @Author yangming
 * @Description 点赞记录表
 **/
@TableName(value ="biz_course_video_like")
@Data
public class BizCourseVideoLike {
    /**
     * 点赞ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 课程视频id
     */
    private Long courseVideoId;
    /**
     * 点赞时间
     */

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT,value = "create_time")
    private LocalDateTime createTime;
    /**
     * 取消点赞时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE) // 插入和更新时都自动填充
    private LocalDateTime deletedTime;

    /**
     * 0为已点赞1为取消点赞
     */
    private Integer deleted;

}
